package com.zhangpu.feign.controller;

import com.zhangpu.feign.service.FeignHystrixService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: zhangpu
 * @License: (C) Copyright hualala.com Corporation Limited.
 * @Contact: zhangpu@hualala.com
 * @Date: 2021.07.20 14:06
 * @Version: 1.0
 * @Description:
 * @ProjectName: spring-cloud-eureka
 */

@RestController
public class FeignHystrixController {

    @Autowired
    private FeignHystrixService feignHystrixService;

    @RequestMapping("/feignHystrix/{name}")
    public String getSpringCloudInfo(@PathVariable(value = "name") String name){
       return feignHystrixService.getSpringcloudInfo(name);
    }

}